package com.hzcx.app.simplechat.chat.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hzcx.app.simplechat.R;
import com.hzcx.app.simplechat.chat.bean.ChatMoreMenuBean;
import com.hzcx.app.simplechat.util.glide.GlideUtils;

import java.util.List;

public class ChatBottomMenuAdapter extends BaseQuickAdapter<ChatMoreMenuBean, BaseViewHolder> {
    public ChatBottomMenuAdapter(int layoutResId, @Nullable List<ChatMoreMenuBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ChatMoreMenuBean item) {
        helper.setImageResource(R.id.iv_img, item.getImg());
        helper.setText(R.id.tv_name, item.getName());
    }
}
